package train48days;

import java.util.Scanner;

public class 字符串反转 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        StringBuilder sb = new StringBuilder(s);
        sb.reverse();
        System.out.println(sb);
//        StringBuilder sb  =new StringBuilder();
//        for (int i = s.length()-1; i>=0; i--) {
//            sb.append(s.charAt(i));
//        }
//        System.out.println(sb.toString());
    }
}
